package com.baiytfp.hf.HFDataExchange.action.service;

import com.baiytfp.hf.HFDataExchange.action.dao.AreaDAOImpl;
import com.baiytfp.hf.HFDataExchange.action.dao.CallLogDAOImpl;
import com.baiytfp.hf.HFDataExchange.common.model.base.TableName;
import com.baiytfp.hf.HFDataExchange.common.model.table.CallLog;
import com.baiytfp.hf.baiytfp.common.db.HFPager;
import com.baiytfp.hf.baiytfp.hfutils.HFDBHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Description: CallLogService.java
 * @author Host
 * @Date  2018/12/5 16:56
 * @Copyright (C)2018/12/5 , linksoft 
 *
 */
@Service
public class CallLogService {
    @Resource
    private CallLogDAOImpl callLogDAO;

    /**
     * 查询列表信息（分页）
     * @param hfPager
     * @return
     * @throws Exception
     */
    public  List<Map> query(HFPager hfPager) throws Exception{
        return callLogDAO.query(hfPager);
    }

    /**
     * 通过id获取调用日志信息
     * @param id
     * @return
     * @throws Exception
     */
    public CallLog getById(String id)throws Exception{
        return callLogDAO.getById(id);
    }

    /**
     * 添加
     * @return
     */
    public long add(CallLog callLog)throws Exception{
        return callLogDAO.add(callLog);
    }

}
